<?php
/**
 * Created by PhpStorm.
 * User: xiaoxin
 * Date: 2018/10/21 0021
 * Time: 20:03
 */

namespace app\index\validate;
use think\Validate;

class AddRess extends Validate
{
	protected $rule =   [
		'ress_phone'=>'require|regex:1\d{10}',
		'ress_content' =>'require|min:8',
		'ress_city'=>'require',
		'ress_name'=>'require',
	];
	protected $message  =   [
		'ress_phone.require'=>'请填写您手机',
		'ress_phone.regex'=>'手机格式不正确',
		'ress_content.require'=>'请填写您详细地址',
		'ress_city.require'=>'请填写城市',
		'ress_name.require'=>'请填写收货人姓名',
		'ress_content.min'=>'详细地址至少8位',
	];

}